/* Base styles */
body {
  margin: 0;
  min-height: 100vh;
  transition:
    background-color 0.3s,
    color 0.3s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Theme styles */
body.dark {
  background-color: #333;
  color: #fff;
}

body.light {
  background-color: #fff;
  color: #000;
}

/* Layout */
.container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Light theme button styles */
body.light button {
  background: white;
  color: black;
  border-color: #ddd;
}

body.light button:hover {
  background: #f5f5f5;
}

/* Dark theme button styles */
body.dark button {
  background: #444;
  color: white;
  border-color: #666;
}

body.dark button:hover {
  background: #555;
}

/* State container */
.state-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

section {
  background: rgba(0, 0, 0, 0.1);
  padding: 16px;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family:
    'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}
